package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Secondary;
import cn.wolfcode.crm.query.ProductQueryObject;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface SecondaryMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Secondary entity);

    Secondary selectByPrimaryKey(Long id);

    List<Secondary> selectAll(ProductQueryObject qo);

    int updateByPrimaryKey(Secondary entity);
    int selectCount(QueryObject qo);

    List<Secondary> queryForList(QueryObject qo);

    List<Secondary> selectByFirstId(Long firstId);

    void deleteRelation(Long parentId);
}